home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.applications
- Subject: Re: Error in C:Eval
- Date: 8 Jan 1996 13:44:26 +0100
- Organization: dis-
- Message-ID: <4cr3ja$ldj@serpens.rhein.de>
- References: <4cqt86$nc4@tuegate.tue.nl>
- NNTP-Posting-Host: serpens.rhein.de
-
- eka@stack.urc.tue.nl (Eka Durmin) writes:
-
- >I use the shell-command Eval in my scripts.
- >There's is an error in Eval:
- > Eval 01 + 09
- > output: 0 (should be 10)
-
- Yields 1 here. However, the second operand is illegal.
- Numbers starting with a 0 are _octal_.
-
- > Eval 01 + 08
- > output: 0 (should be 9 or 09)
-
- Same here. My eval has version 37.3.
-
- >The error only happens when (AFAIK) adding with 08 or 09
-
- Try: eval 01 + 010, it will return 9.
-
- Regards,
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-